<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>login</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/style.css" />
	<style type="text/css">
		.logo a{
			padding-left:30px;
		}
		.login{
			width:600px;
			margin:100px auto 0 auto;
		}
		.control-label{
			font-size:1.2em;
		}
		.btn{
			margin:0px 10px;
		}
		.btn-info{
			margin-left:20px;
		}
	</style>
</head>
<body>
	<div class="container">
		<div class="header">
		  <h1 class="logo"><a href="#">欢迎使用项目管理系统</a></h1>
		</div>
		<div class="content">
			<div class="login">
				<form class="form-horizontal" action="login.jspx" method="post" id="fm">
				  <div class="control-group">
					<label class="control-label">用户名</label>
					<div class="controls">
					  <input type="text" placeholder="Username" name="username" id="user"  autocomplete="off">
					</div>
				  </div>
				  <div class="control-group">
					<label class="control-label">密码</label>
					<div class="controls">
					  <input type="password" placeholder="Password" name="password" id="pwd" autocomplete="off">
					</div>
				  </div>
				  <div class="control-group">
					<div class="controls">
					  <button type="button" class="btn btn-info" id="btn">登录</button>
					  <button type="button" class="btn"  id="b">重置</button>
					  
					  <c:if test="${param.state=='000'}">
  			          <div style="color:red">用户名或密码错误</div>
  		              </c:if>
							  
					</div>
				  </div>
</form>
			</div>
		</div>
		</div>
		<!--container end-->
		

	
	
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript">
	
	 $("#btn").click(function(){
	 $("#fm").submit();

    });
   
     
    $("#b").click(function(){
	$("#user").val("");
	$("#pwd").val("");
    });
    
	
	</script>
	
	
	
</body>
</html>
